package com.cal.calonecal.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author 76004
 * @apiNote
 * @date 2023/6/17 0:44
 */
@TableName("paper")
@Data
public class Paper {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Date createTime;

    private String title;

    private Long classId;

    @ApiModelProperty("试卷描述")
    private String content;

    @ApiModelProperty("标签id")
    private long typeId;

    @TableField(exist = false)
    private List<Long>problemIds;

    @TableField(exist = false)
    private List<Problem>problems;


    @TableField(exist = false)
    private int problemNum;
}
